/*
 * @Author: your name
 * @Date: 2020-11-15 15:29:23
 * @LastEditTime: 2020-11-29 14:08:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /applet_ynlj_v1.0.0/component/houseFillter/houseFiltter.js
 */
// component/houseFillter/houseFiltter.js
// let defaultTags = [
//   {
//     label: "在售",
//     properties: 'saleStatus',
//     value: "1"
//   },
//   {
//     label: "即将预售",
//     properties: 'saleStatus',
//     value: "2"
//   }, {
//     label: "最新取证",
//     properties: 'forensicsStatus',
//     value: "3"
//   }
//   , {
//     label: "热门楼盘",
//     properties: 'chooseType',
//     value: "0"
//   },

// ]

const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    filterType: {
      type: String,
      default: "kRESIDENTIAL"
    },
    tags: {
      type: Array,
      value: [],
    },
    tagType: {
      type: String,
      default: "default"
    },
    showTags: {
      type: Boolean,
      value: true
    },
    //是否是住宅筛选:
    isHouse: {
      type: Boolean,
      value: false,
    },
    //是否是公寓筛选:
    isApartment: {
      type: Boolean,
      value: false,
    },
    //是否是商铺(新房的)
    isBussiness: {
      type: Boolean,
      value: false
    },
    owerZoneContent: {
      type: String,
      value: null,
      observer: function (newVal, oldVal, changePath) {
        console.log('request.owerZone', newVal)
        this.setData({
          'request.owerZone': newVal
        })
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    currentmenu: -1,
    is_view: false,
    filter: [],
    secendSelect: 100,
    isNoData: false,
    selectTags: [],


    //自由输入价格=======
    currentPriceType: 0,//0:单价，1:总价 
    inputMinPrice: "",//输入的最小价格
    inputMaxPrice: "",//输入的最大价格
    inputMinPlaText: "最低价格（元）",
    inputMaxPlaText: "最高价格（元）",

    inputMinArea: "",//最小面积
    inputMaxArea: "",//最大面积


    //自由输入价格=======



    //默认tags:
    defaultTags: [
      {
        label: "特价房源",
        properties: 'saleStatus',
        value: "特价房源"
      },
      {
        label: "即将预售",
        properties: 'saleStatus',
        value: "即将预售"
      }, {
        label: "最新取证",
        properties: 'forensicsStatus',
        value: "最新取证"
      }
      , {
        label: "热门楼盘",
        properties: 'chooseType',
        value: "热门楼盘"
      },

    ],
    //二手房下方tag
    secondTags: [
      {
        label: "热门楼盘",
        properties: 'saleStatus',
        value: "热门楼盘"
      },
      {
        label: "必看好房",
        properties: 'saleStatus',
        value: "必看好房"
      }, {
        label: "特价房源",
        properties: 'forensicsStatus',
        value: "特价房源"
      }
      , {
        label: "黄金地段",
        properties: 'chooseType',
        value: "黄金地段"
      },
    ],
    // 找房tags:
    huntTags: [
      {
        label: "热门楼盘",
        properties: 'saleStatus',
        value: "热门楼盘"
      },
      {
        label: "必看好房",
        properties: 'saleStatus',
        value: "必看好房"
      }, {
        label: "特价房源",
        properties: 'forensicsStatus',
        value: "特价房源"
      }
      , {
        label: "即将预售",
        properties: 'chooseType',
        value: "即将预售"
      },
    ],











    //贝壳数据
    //仿贝壳数据
    filter_five: [{
      id: 1,
      name: '区域',
      popType: 'leftRight',
      isMultiple: true,//是否多选
      content: [
        {
          title: '地铁',
          isChoose: true,
          paramsName: "subway",
          value: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            key: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '1号线',
            key: '1号线'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '2号线',
            key: '2号线'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '3号线',
            key: '3号线'
          }, {
            conetent_id: '5',
            isChoose: false,
            name: '4号线',
            key: '4号线'
          }, {
            conetent_id: '6',
            isChoose: false,
            name: '5号线',
            key: '5号线'
          }, {
            conetent_id: '7',
            isChoose: false,
            name: '6号线',
            key: '6号线'
          }, {
            conetent_id: '3',
            isChoose: false,
            name: '7号线',
            key: '7号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '8号线',
            key: '8号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '9号线',
            key: '9号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '10号线',
            key: '10号线'
          },

          {
            conetent_id: '3',
            isChoose: false,
            name: '17号线',
            key: '17号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '18号线',
            key: '18号线'
          }
          ]
        },
        {
          title: '一圈',
          isChoose: false,
          paramsName: "firstZone",
          value: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            key: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '天府新区',
            key: '天府新区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '高新区',
            key: '高新区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '锦江区',
            key: '锦江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '青羊区',
            key: '青羊区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '金牛区',
            key: '金牛区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '武侯区',
            key: '武侯区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '成华区',
            key: '成华区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新西区',
            key: '高新西区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新东区',
            key: '高新东区'
          }
          ]
        },
        {
          title: '二圈',
          isChoose: false,
          paramsName: "twoZone",
          value: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            key: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '龙泉驿区',
            key: '龙泉驿区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '新都区',
            key: '新都区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '温江区',
            key: '温江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '双流区',
            key: '双流区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '郫都区',
            key: '郫都区'
          }
          ]
        },
        {
          title: '三圈',
          isChoose: false,
          paramsName: "threeZone",
          value: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            key: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '青白江区',
            key: '青白江区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '金堂县',
            key: '金堂县'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '大邑县',
            key: '大邑县'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '都江堰市',
            key: '都江堰市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '彭州市',
            key: '彭州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '邛崃市',
            key: '邛崃市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '崇州市',
            key: '崇州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '简阳市',
            key: '简阳市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '新津区',
            key: '新津区'
          }
          ]
        },
        {
          title: '成都周边',
          isChoose: false,
          paramsName: "circleZone",
          value: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            key: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '德阳市',
            key: '德阳市'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '乐山市',
            key: '乐山市'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '眉山市',
            key: '眉山市'
          }

          ]
        },
      ]
    },
    {
      id: 2,
      name: '价格',
      popType: "morePrice",
      isMultiple: true,//是否多选
      content: [
        {
          title: "单价",
          isChoose: true,
          paramsName: 'unitPrice',
          value: [{
            id: '1',
            isChoose: true,
            name: '不限',
            key: ''
          }, {
            id: '1',
            isChoose: false,
            name: '1万以下',
            key: '1-10000',
            minUnitPrice: 1,
            maxUnitPrice: 10000,
          },
          {
            id: '2',
            isChoose: false,
            name: '1-1.5万',
            key: '10000-15000',
            minUnitPrice: 10000,
            maxUnitPrice: 15000,
          },
          {
            id: '2',
            isChoose: false,
            name: '1.5-2万',
            key: '15000-20000',
            minUnitPrice: 15000,
            maxUnitPrice: 20000,
          },
          {
            id: '3',
            isChoose: false,
            name: '2-2.5万',
            key: '20000-25000',
            minUnitPrice: 20000,
            maxUnitPrice: 25000,
          }, {
            id: '4',
            isChoose: false,
            name: '2.5-3万',
            key: '25000-30000',
            minUnitPrice: 25000,
            maxUnitPrice: 30000,
          },
          {
            id: '5',
            isChoose: false,
            name: '3万以上',
            key: '30000-99999',
            minUnitPrice: 30000,
            maxUnitPrice: 99999,
          }
          ]
        },
        {
          title: "总价",
          isChoose: false,
          paramsName: 'totalPrice',
          value: [{
            id: '1',
            isChoose: true,
            name: '不限',
            key: ''
          }, {
            id: '1',
            isChoose: false,
            name: '50万以下',
            key: '1-50',
            minTotalPrice: 1,
            maxTotalPrice: 50,
          },
          {
            id: '1',
            isChoose: false,
            name: '50-100万',
            key: '50-100',
            minTotalPrice: 50,
            maxTotalPrice: 100,
          },
          {
            id: '2',
            isChoose: false,
            name: '100-150万',
            key: '100-150',
            minTotalPrice: 100,
            maxTotalPrice: 150,
          },
          {
            id: '2',
            isChoose: false,
            name: '150-200万',
            key: '150-200',
            minTotalPrice: 150,
            maxTotalPrice: 200,
          }, {
            id: '3',
            isChoose: false,
            name: '200-300万',
            key: '200-300',
            minTotalPrice: 200,
            maxTotalPrice: 300,
          },
          {
            id: '4',
            isChoose: false,
            name: '300万以上',
            key: '300-999',
            minTotalPrice: 300,
            maxTotalPrice: 999,
          }
          ]
        }
      ]
    },

    {
      id: 3,
      name: '房型',
      popType: "houseType",
      isMultiple: false,//是否多选
      content: [{
        title: "房型",
        isChoose: true,
        paramsName: "houseStyle",
        value: [{
          id: 1,
          isChoose: true,
          name: '不限',
          key: ''
        }, {
          id: 1,
          isChoose: false,
          name: '一室',
          key: '一室'
        }, {
          id: 1,
          isChoose: false,
          name: '二室',
          key: '二室'
        }, {
          id: 1,
          isChoose: false,
          name: '三室',
          key: '三室'
        }, {
          id: 1,
          isChoose: false,
          name: '四室',
          key: '四室'
        }, {
          id: 1,
          isChoose: false,
          name: '五室',
          key: '五室'
        },
        {
          id: 1,
          isChoose: false,
          name: '五室以上',
          key: '五室以上'
        },

        ]
      }]
    },





    {
      id: 4,
      name: '面积',
      popType: "area",
      isMultiple: false,//是否多选
      content: [{
        title: "建筑面积",
        isChoose: true,
        paramsName: "area",
        value: [{
          id: 1,
          isChoose: true,
          name: '不限',
          key: ''
        }, {
          id: 2,
          isChoose: false,
          name: '30m²以下',
          key: '1-30'
        }, {
          id: 3,
          isChoose: false,
          name: '30-60m²',
          key: '30-60'
        }, {
          id: 4,
          isChoose: false,
          name: '70-90m²',
          key: '70-90'
        },
        {
          id: 4,
          isChoose: false,
          name: '60-100m²',
          key: '60-100'
        },
        {
          id: 4,
          isChoose: false,
          name: '90-110m²',
          key: '90-110'
        },
        {
          id: 4,
          isChoose: false,
          name: '80-130m²',
          key: '80-130'
        },
        {
          id: 4,
          isChoose: false,
          name: '100-160m²',
          key: '100-160'
        },
        {
          id: 4,
          isChoose: false,
          name: '160-200m²',
          key: '160-200'
        },
        {
          id: 4,
          isChoose: false,
          name: '200m²以上',
          key: '200-999'
        }
        ]
      }]
    },



    {
      id: 5,
      name: '状态',
      popType: "saleStatus",
      isMultiple: false,//是否多选
      content: [{
        title: "销售状态",
        isChoose: true,
        paramsName: "saleStatus",
        value: [{
          id: 1,
          isChoose: true,
          name: '不限',
          key: ''
        }, {
          id: 1,
          isChoose: false,
          name: '在售',
          key: '在售'
        }, {
          id: 1,
          isChoose: false,
          name: '待售',
          key: '待售'
        }, {
          id: 1,
          isChoose: false,
          name: '停售',
          key: '停售'
        }, {
          id: 1,
          isChoose: false,
          name: '售罄',
          key: '售罄'
        },
        ]
      }]

    },
      // {
      //   id: 5,
      //   name: '排序',
      //   popType:"sort",
      //   isMultiple:false,//是否多选
      //   content: [{
      //     title: "排序",
      //     isChoose: true,
      //     paramsName:"sort",
      //     value: [{
      //       id: 1,
      //       isChoose: true,
      //       name: '默认排序',
      //       key: ''
      //     }, {
      //       id: 1,
      //       isChoose: false,
      //

    ],


    //临时写死的二手房数据
    filter_second: [{
      id: 1,
      name: '区域',
      popType: 'leftRight',
      isMultiple: true,//是否多选
      sec: [
        {
          title: '地铁',
          isChoose: true,
          paramsName: "subway",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '1号线',
            keyName: '1号线'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '2号线',
            keyName: '2号线'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '3号线',
            keyName: '3号线'
          }, {
            conetent_id: '5',
            isChoose: false,
            name: '4号线',
            keyName: '4号线'
          }, {
            conetent_id: '6',
            isChoose: false,
            name: '5号线',
            keyName: '5号线'
          }, {
            conetent_id: '7',
            isChoose: false,
            name: '6号线',
            keyName: '6号线'
          }, {
            conetent_id: '3',
            isChoose: false,
            name: '7号线',
            keyName: '7号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '8号线',
            keyName: '8号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '9号线',
            keyName: '9号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '10号线',
            keyName: '10号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '17号线',
            keyName: '17号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '18号线',
            keyName: '18号线'
          }
          ]
        },
        {
          title: '一圈',
          isChoose: false,
          paramsName: "firstZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '天府新区',
            keyName: '天府新区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '高新区',
            keyName: '高新区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '锦江区',
            keyName: '锦江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '青羊区',
            keyName: '青羊区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '金牛区',
            keyName: '金牛区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '武侯区',
            keyName: '武侯区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '成华区',
            keyName: '成华区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新西区',
            keyName: '高新西区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新东区',
            keyName: '高新东区'
          }
          ]
        },
        {
          title: '二圈',
          isChoose: false,
          paramsName: "twoZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '龙泉驿区',
            keyName: '龙泉驿区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '新都区',
            keyName: '新都区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '温江区',
            keyName: '温江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '双流区',
            keyName: '双流区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '郫都区',
            keyName: '郫都区'
          }
          ]
        },
        {
          title: '三圈',
          isChoose: false,
          paramsName: "threeZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '青白江区',
            keyName: '青白江区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '金堂县',
            keyName: '金堂县'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '大邑县',
            keyName: '大邑县'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '都江堰市',
            keyName: '都江堰市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '彭州市',
            keyName: '彭州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '邛崃市',
            keyName: '邛崃市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '崇州市',
            keyName: '崇州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '简阳市',
            keyName: '简阳市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '新津区',
            keyName: '新津区'
          }
          ]
        },
        {
          title: '成都周边',
          isChoose: false,
          paramsName: "circleZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '德阳市',
            keyName: '德阳市'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '乐山市',
            keyName: '乐山市'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '眉山市',
            keyName: '眉山市'
          }

          ]
        },
      ]
    },
    {
      id: 2,
      name: '价格',
      popType: "lrPrice",
      isMultiple: true,//是否多选
      sec: [
        {
          title: "单价",
          isChoose: true,
          paramsName: 'unitPrice',
          third: [{
            id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            id: '1',
            isChoose: false,
            name: '1万以下',
            keyName: '1-10000',
            minValue: 1,
            maxValue: 10000,
          },
          {
            id: '2',
            isChoose: false,
            name: '1-1.5万',
            keyName: '10000-15000',
            minValue: 10000,
            maxValue: 15000,
          },
          {
            id: '2',
            isChoose: false,
            name: '1.5-2万',
            keyName: '15000-20000',
            minValue: 15000,
            maxValue: 20000,
          },
          {
            id: '3',
            isChoose: false,
            name: '2-2.5万',
            keyName: '20000-25000',
            minValue: 20000,
            maxValue: 25000,
          }, {
            id: '4',
            isChoose: false,
            name: '2.5-3万',
            keyName: '25000-30000',
            minValue: 25000,
            maxValue: 30000,
          },
          {
            id: '5',
            isChoose: false,
            name: '3万以上',
            keyName: '30000-99999',
            minValue: 30000,
            maxValue: 99999,
          }
          ]
        },
        {
          title: "总价",
          isChoose: false,
          paramsName: 'totalPrice',
          third: [{
            id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            id: '1',
            isChoose: false,
            name: '50万以下',
            keyName: '1-50',
            minValue: 1,
            maxValue: 50,
          },
          {
            id: '1',
            isChoose: false,
            name: '50-100万',
            keyName: '50-100',
            minValue: 50,
            maxValue: 100,
          },
          {
            id: '2',
            isChoose: false,
            name: '100-150万',
            keyName: '100-150',
            minValue: 100,
            maxValue: 150,
          },
          {
            id: '2',
            isChoose: false,
            name: '150-200万',
            keyName: '150-200',
            minValue: 150,
            maxValue: 200,
          }, {
            id: '3',
            isChoose: false,
            name: '200-300万',
            keyName: '200-300',
            minValue: 200,
            maxValue: 300,
          },
          {
            id: '4',
            isChoose: false,
            name: '300万以上',
            keyName: '300-999',
            minValue: 300,
            maxValue: 999,
          }
          ]
        }
      ]
    },

    {
      id: 3,
      name: '房型',
      popType: "houseType",
      isMultiple: false,//是否多选
      sec: [{
        title: "房型",
        isChoose: true,
        paramsName: "houseType",
        third: [{
          id: 1,
          isChoose: true,
          name: '不限',
          keyName: ''
        }, {
          id: 1,
          isChoose: false,
          name: '一室',
          keyName: '一室'
        }, {
          id: 1,
          isChoose: false,
          name: '二室',
          keyName: '二室'
        }, {
          id: 1,
          isChoose: false,
          name: '三室',
          keyName: '三室'
        }, {
          id: 1,
          isChoose: false,
          name: '四室',
          keyName: '四室'
        },
        {
          id: 1,
          isChoose: false,
          name: '五室',
          keyName: '五室'
        },
        {
          id: 1,
          isChoose: false,
          name: '五室以上',
          keyName: '五室以上'
        },
        ]
      }]
    },





    {
      id: 4,
      name: '面积',
      popType: "area",
      isMultiple: false,//是否多选
      sec: [{
        title: "建筑面积",
        isChoose: true,
        paramsName: "area",
        third: [{
          id: 1,
          isChoose: true,
          name: '不限',
          keyName: ''
        }, {
          id: 2,
          isChoose: false,
          name: '30m²以下',
          keyName: '1-30'
        }, {
          id: 3,
          isChoose: false,
          name: '30-60m²',
          keyName: '30-60'
        }, {
          id: 4,
          isChoose: false,
          name: '70-90m²',
          keyName: '70-90'
        },
        {
          id: 4,
          isChoose: false,
          name: '60-100m²',
          keyName: '60-100'
        },
        {
          id: 4,
          isChoose: false,
          name: '90-110m²',
          keyName: '90-110'
        },
        {
          id: 4,
          isChoose: false,
          name: '80-130m²',
          keyName: '80-130'
        },
        {
          id: 4,
          isChoose: false,
          name: '100-160m²',
          keyName: '100-160'
        },
        {
          id: 4,
          isChoose: false,
          name: '160-200m²',
          keyName: '160-200'
        },
        {
          id: 4,
          isChoose: false,
          name: '200m²以上',
          keyName: '200-999'
        }
        ]
      }]
    },
    {
      id: 4,
      name: '更多',
      popType: "more",
      isMultiple: true,//是否多选
      sec: [
        {
          title: "装修",
          isChoose: true,
          paramsName: "decoration",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '毛坯',
            keyName: '毛坯',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '简装',
            keyName: '简装',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '精装',
            keyName: '精装',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '豪装',
            keyName: '豪装',
            matchCategory: "common",
          },


          ]
        },
        {
          title: "朝向",
          isChoose: true,
          paramsName: "toward",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '南北',
            keyName: '南北',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '朝南',
            keyName: '朝南',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '朝东',
            keyName: '朝东',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '朝北',
            keyName: '朝北',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '朝西',
            keyName: '朝西',
            matchCategory: "common",
          },


          ]
        },
        {
          title: "楼层",
          isChoose: true,
          paramsName: "storey",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '低楼层',
            keyName: '低楼层',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '中楼层',
            keyName: '中楼层',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '高楼层',
            keyName: '高楼层',
            matchCategory: "common",
          },
          ]
        },
        {
          title: "楼龄",
          isChoose: true,
          paramsName: "years",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '5年以内',
            keyName: '5',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '10年以内',
            keyName: '10',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '15年以内',
            keyName: '15',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '20年以内',
            keyName: '20',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '20年以上',
            keyName: '999',
            matchCategory: "common",
          },
          ]
        },
        {
          title: "用途",
          isChoose: true,
          paramsName: "houseUse",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '普通住宅',
            keyName: '普通住宅',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '商业类',
            keyName: '商业类',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '别墅',
            keyName: '别墅',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '四合院',
            keyName: '四合院',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '车位',
            keyName: '车位',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '其他',
            keyName: '其他',
            matchCategory: "common",
          },
          ]
        },
        {
          title: "电梯",
          isChoose: true,
          paramsName: "elevator",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '有电梯',
            keyName: '有电梯',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '无电梯',
            keyName: '无电梯',
            matchCategory: "common",
          },

          ]
        },

        {
          title: "权属",
          isChoose: true,
          paramsName: "ownership",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '商品房',
            keyName: '商品房',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '公房',
            keyName: '公房',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '经适房',
            keyName: '经适房',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '其他',
            keyName: '其他',
            matchCategory: "common",
          },
          ]
        },
        {
          title: "类型",
          isChoose: true,
          paramsName: "buildMold",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '塔楼',
            keyName: '塔楼',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '板楼',
            keyName: '板楼',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '板塔结合',
            keyName: '板塔结合',
            matchCategory: "common",
          },

          ]
        },


      ]
    },



    ],





    //临时写死的商铺筛选数据数据(租商铺或者租写字楼的时候)
    filter_shop: [{
      id: 1,
      name: '区域',
      popType: 'leftRight',
      isMultiple: true,//是否多选
      sec: [
        {
          title: '地铁',
          isChoose: true,
          paramsName: "subway",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '1号线',
            keyName: '1号线'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '2号线',
            keyName: '2号线'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '3号线',
            keyName: '3号线'
          }, {
            conetent_id: '5',
            isChoose: false,
            name: '4号线',
            keyName: '4号线'
          }, {
            conetent_id: '6',
            isChoose: false,
            name: '5号线',
            keyName: '5号线'
          }, {
            conetent_id: '7',
            isChoose: false,
            name: '6号线',
            keyName: '6号线'
          }, {
            conetent_id: '3',
            isChoose: false,
            name: '7号线',
            keyName: '7号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '8号线',
            keyName: '8号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '9号线',
            keyName: '9号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '10号线',
            keyName: '10号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '17号线',
            keyName: '17号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '18号线',
            keyName: '18号线'
          }
          ]
        },
        {
          title: '一圈',
          isChoose: false,
          paramsName: "firstZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '天府新区',
            keyName: '天府新区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '高新区',
            keyName: '高新区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '锦江区',
            keyName: '锦江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '青羊区',
            keyName: '青羊区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '金牛区',
            keyName: '金牛区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '武侯区',
            keyName: '武侯区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '成华区',
            keyName: '成华区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新西区',
            keyName: '高新西区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新东区',
            keyName: '高新东区'
          }
          ]
        },
        {
          title: '二圈',
          isChoose: false,
          paramsName: "twoZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '龙泉驿区',
            keyName: '龙泉驿区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '新都区',
            keyName: '新都区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '温江区',
            keyName: '温江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '双流区',
            keyName: '双流区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '郫都区',
            keyName: '郫都区'
          }
          ]
        },
        {
          title: '三圈',
          isChoose: false,
          paramsName: "threeZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '青白江区',
            keyName: '青白江区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '金堂县',
            keyName: '金堂县'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '大邑县',
            keyName: '大邑县'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '都江堰市',
            keyName: '都江堰市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '彭州市',
            keyName: '彭州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '邛崃市',
            keyName: '邛崃市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '崇州市',
            keyName: '崇州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '简阳市',
            keyName: '简阳市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '新津区',
            keyName: '新津区'
          }
          ]
        },
        {
          title: '成都周边',
          isChoose: false,
          paramsName: "circleZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '德阳市',
            keyName: '德阳市'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '乐山市',
            keyName: '乐山市'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '眉山市',
            keyName: '眉山市'
          }

          ]
        },
      ]
    },
    {
      id: 2,
      name: '价格',
      popType: "morePrice",
      isMultiple: true,//是否多选
      sec: [
        {
          title: "天单价(元/天/㎡)",
          isChoose: true,
          paramsName: 'unitPrice',
          third: [{
            id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            id: '1',
            isChoose: false,
            name: '<3元',
            keyName: '1-3',
            minValue: 0,
            maxValue: 3,
          },
          {
            id: '2',
            isChoose: false,
            name: '3-5元',
            keyName: '3-5',
            minValue: 3,
            maxValue: 5,
          },
          {
            id: '2',
            isChoose: false,
            name: '5-7元',
            keyName: '5-7',
            minValue: 5,
            maxValue: 7,
          },
          {
            id: '3',
            isChoose: false,
            name: '7-9元',
            keyName: '7-9',
            minValue: 7,
            maxValue: 9,
          }, {
            id: '4',
            isChoose: false,
            name: '9-12元',
            keyName: '9-12',
            minValue: 9,
            maxValue: 12,
          },
          {
            id: '5',
            isChoose: false,
            name: '>12元',
            keyName: '12-999',
            minValue: 12,
            maxValue: 99,
          }
          ]
        },
        {
          title: "月单价(万元/月)",
          isChoose: false,
          paramsName: 'totalPrice',
          third: [{
            id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            id: '1',
            isChoose: false,
            name: '<0.8万元',
            keyName: '1-8000',
            minValue: 0,
            maxValue: 8000,
          },
          {
            id: '1',
            isChoose: false,
            name: '0.8-1.2万元',
            keyName: '8000-12000',
            minValue: 80,
            maxValue: 110,
          },
          {
            id: '2',
            isChoose: false,
            name: '1.2-1.5万元',
            keyName: '12000-15000',
            minValue: 110,
            maxValue: 140,
          },
          {
            id: '2',
            isChoose: false,
            name: '1.5-2万元',
            keyName: '140-180',
            minValue: 140,
            maxValue: 180,
          }, {
            id: '3',
            isChoose: false,
            name: '2-5万',
            keyName: '20000-50000',
            minValue: 180,
            maxValue: 990,
          },
          {
            id: '3',
            isChoose: false,
            name: '5-10万',
            keyName: '50000-100000',
            minValue: 180,
            maxValue: 990,
          },
          {
            id: '3',
            isChoose: false,
            name: '>10万',
            keyName: '100000-9999999',
            minValue: 180,
            maxValue: 990,
          },

          ]
        },

      ]
    },
    {
      id: 4,
      name: '面积',
      popType: "area",
      isMultiple: false,//是否多选
      sec: [{
        title: "建筑面积",
        isChoose: true,
        paramsName: "area",
        third: [{
          id: 1,
          isChoose: true,
          name: '不限',
          keyName: ''
        }, {
          id: 2,
          isChoose: false,
          name: '20m²以下',
          keyName: '1-20'
        }, {
          id: 3,
          isChoose: false,
          name: '20-50m²',
          keyName: '20-50'
        }, {
          id: 4,
          isChoose: false,
          name: '50-100m²',
          keyName: '50-100'
        },
        {
          id: 4,
          isChoose: false,
          name: '100-300m²',
          keyName: '100-300'
        },
        {
          id: 4,
          isChoose: false,
          name: '300-500m²',
          keyName: '300-500'
        },
        {
          id: 4,
          isChoose: false,
          name: '500-1000m²',
          keyName: '500-1000'
        },
        {
          id: 4,
          isChoose: false,
          name: '1000m²以上',
          keyName: '1000-9999'
        },

        ]
      }]
    },
    {
      id: 4,
      name: '更多',
      popType: "more",
      isMultiple: true,//是否多选
      sec: [
        {
          title: "房间",
          isChoose: true,
          paramsName: "usedType",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '餐饮',
            keyName: '餐饮',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '美容美发',
            keyName: '美容美发',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '生活服务',
            keyName: '生活服务',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '零售',
            keyName: '零售',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '批发',
            keyName: '批发',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '宾馆住宿',
            keyName: '宾馆住宿',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '其他',
            keyName: '其他',
            matchCategory: "common",
          },

          ]
        },
        {
          title: "装修",
          isChoose: true,
          paramsName: "decoration",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '特定行业装修',
            keyName: '特定行业装修',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '毛坯',
            keyName: '毛坯',
            matchCategory: "common",
          },
          {
            id: 3,
            isChoose: false,
            name: '简装',
            keyName: '简装',
            matchCategory: "common",
          },
          {
            id: 3,
            isChoose: false,
            name: '精装',
            keyName: '精装',
            matchCategory: "common",
          },
          ]
        },

      ]
    },

    ],

    //临时写死的买商铺或者买写字楼
    filter_buyShop: [{
      id: 1,
      name: '区域',
      popType: 'leftRight',
      isMultiple: true,//是否多选
      sec: [
        {
          title: '地铁',
          isChoose: true,
          paramsName: "subway",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '1号线',
            keyName: '1号线'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '2号线',
            keyName: '2号线'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '3号线',
            keyName: '3号线'
          }, {
            conetent_id: '5',
            isChoose: false,
            name: '4号线',
            keyName: '4号线'
          }, {
            conetent_id: '6',
            isChoose: false,
            name: '5号线',
            keyName: '5号线'
          }, {
            conetent_id: '7',
            isChoose: false,
            name: '6号线',
            keyName: '6号线'
          }, {
            conetent_id: '3',
            isChoose: false,
            name: '7号线',
            keyName: '7号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '8号线',
            keyName: '8号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '9号线',
            keyName: '9号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '10号线',
            keyName: '10号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '17号线',
            keyName: '17号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '18号线',
            keyName: '18号线'
          }
          ]
        },
        {
          title: '一圈',
          isChoose: false,
          paramsName: "firstZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '天府新区',
            keyName: '天府新区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '高新区',
            keyName: '高新区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '锦江区',
            keyName: '锦江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '青羊区',
            keyName: '青羊区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '金牛区',
            keyName: '金牛区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '武侯区',
            keyName: '武侯区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '成华区',
            keyName: '成华区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新西区',
            keyName: '高新西区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新东区',
            keyName: '高新东区'
          }
          ]
        },
        {
          title: '二圈',
          isChoose: false,
          paramsName: "twoZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '龙泉驿区',
            keyName: '龙泉驿区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '新都区',
            keyName: '新都区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '温江区',
            keyName: '温江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '双流区',
            keyName: '双流区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '郫都区',
            keyName: '郫都区'
          }
          ]
        },
        {
          title: '三圈',
          isChoose: false,
          paramsName: "threeZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '青白江区',
            keyName: '青白江区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '金堂县',
            keyName: '金堂县'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '大邑县',
            keyName: '大邑县'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '都江堰市',
            keyName: '都江堰市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '彭州市',
            keyName: '彭州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '邛崃市',
            keyName: '邛崃市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '崇州市',
            keyName: '崇州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '简阳市',
            keyName: '简阳市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '新津区',
            keyName: '新津区'
          }
          ]
        },
        {
          title: '成都周边',
          isChoose: false,
          paramsName: "circleZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '德阳市',
            keyName: '德阳市'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '乐山市',
            keyName: '乐山市'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '眉山市',
            keyName: '眉山市'
          }

          ]
        },
      ]
    },
    {
      id: 2,
      name: '价格',
      popType: "lrPrice",
      isMultiple: true,//是否多选
      sec: [
        {
          title: "单价",
          isChoose: true,
          paramsName: 'unitPrice',
          third: [{
            id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            id: '1',
            isChoose: false,
            name: '1万以下',
            keyName: '1-10000',
            minValue: 1,
            maxValue: 10000,
          },
          {
            id: '2',
            isChoose: false,
            name: '1-1.5万',
            keyName: '10000-15000',
            minValue: 10000,
            maxValue: 15000,
          },
          {
            id: '2',
            isChoose: false,
            name: '1.5-2万',
            keyName: '15000-20000',
            minValue: 15000,
            maxValue: 20000,
          },
          {
            id: '3',
            isChoose: false,
            name: '2-2.5万',
            keyName: '20000-25000',
            minValue: 20000,
            maxValue: 25000,
          }, {
            id: '4',
            isChoose: false,
            name: '2.5-3万',
            keyName: '25000-30000',
            minValue: 25000,
            maxValue: 30000,
          },
          {
            id: '5',
            isChoose: false,
            name: '3万以上',
            keyName: '30000-99999',
            minValue: 30000,
            maxValue: 99999,
          }
          ]
        },
        {
          title: "总价",
          isChoose: false,
          paramsName: 'totalPrice',
          third: [{
            id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            id: '1',
            isChoose: false,
            name: '50万以下',
            keyName: '1-50',
            minValue: 1,
            maxValue: 50,
          },
          {
            id: '1',
            isChoose: false,
            name: '50-100万',
            keyName: '50-100',
            minValue: 50,
            maxValue: 100,
          },
          {
            id: '2',
            isChoose: false,
            name: '100-150万',
            keyName: '100-150',
            minValue: 100,
            maxValue: 150,
          },
          {
            id: '2',
            isChoose: false,
            name: '150-200万',
            keyName: '150-200',
            minValue: 150,
            maxValue: 200,
          }, {
            id: '3',
            isChoose: false,
            name: '200-300万',
            keyName: '200-300',
            minValue: 200,
            maxValue: 300,
          },
          {
            id: '4',
            isChoose: false,
            name: '300万以上',
            keyName: '300-999',
            minValue: 300,
            maxValue: 999,
          }
          ]
        }
      ]
    },
    {
      id: 4,
      name: '面积',
      popType: "area",
      isMultiple: false,//是否多选
      sec: [{
        title: "建筑面积",
        isChoose: true,
        paramsName: "area",
        third: [{
          id: 1,
          isChoose: true,
          name: '不限',
          keyName: ''
        }, {
          id: 2,
          isChoose: false,
          name: '20m²以下',
          keyName: '1-20'
        }, {
          id: 3,
          isChoose: false,
          name: '20-50m²',
          keyName: '20-50'
        }, {
          id: 4,
          isChoose: false,
          name: '50-100m²',
          keyName: '50-100'
        },
        {
          id: 4,
          isChoose: false,
          name: '100-300m²',
          keyName: '100-300'
        },
        {
          id: 4,
          isChoose: false,
          name: '300-500m²',
          keyName: '300-500'
        },
        {
          id: 4,
          isChoose: false,
          name: '500-1000m²',
          keyName: '500-1000'
        },
        {
          id: 4,
          isChoose: false,
          name: '1000m²以上',
          keyName: '1000-9999'
        },

        ]
      }]
    },
    {
      id: 4,
      name: '更多',
      popType: "more",
      isMultiple: true,//是否多选
      sec: [
        {
          title: "房间",
          isChoose: true,
          paramsName: "usedType",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '餐饮',
            keyName: '餐饮',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '美容美发',
            keyName: '美容美发',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '生活服务',
            keyName: '生活服务',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '零售',
            keyName: '零售',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '批发',
            keyName: '批发',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '宾馆住宿',
            keyName: '宾馆住宿',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '其他',
            keyName: '其他',
            matchCategory: "common",
          },

          ]
        },
        {
          title: "装修",
          isChoose: true,
          paramsName: "decoration",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '特定行业装修',
            keyName: '特定行业装修',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '毛坯',
            keyName: '毛坯',
            matchCategory: "common",
          },
          {
            id: 3,
            isChoose: false,
            name: '简装',
            keyName: '简装',
            matchCategory: "common",
          },
          {
            id: 3,
            isChoose: false,
            name: '精装',
            keyName: '精装',
            matchCategory: "common",
          },
          ]
        },

      ]
    },

    ],

    //临时写死的租房数据:
    filter_rent: [{
      id: 1,
      name: '区域',
      popType: 'leftRight',
      isMultiple: true,//是否多选
      sec: [
        {
          title: '地铁',
          isChoose: true,
          paramsName: "subway",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '1号线',
            keyName: '1号线'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '2号线',
            keyName: '2号线'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '3号线',
            keyName: '3号线'
          }, {
            conetent_id: '5',
            isChoose: false,
            name: '4号线',
            keyName: '4号线'
          }, {
            conetent_id: '6',
            isChoose: false,
            name: '5号线',
            keyName: '5号线'
          }, {
            conetent_id: '7',
            isChoose: false,
            name: '6号线',
            keyName: '6号线'
          }, {
            conetent_id: '3',
            isChoose: false,
            name: '7号线',
            keyName: '7号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '8号线',
            keyName: '8号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '9号线',
            keyName: '9号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '10号线',
            keyName: '10号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '17号线',
            keyName: '17号线'
          },
          {
            conetent_id: '3',
            isChoose: false,
            name: '18号线',
            keyName: '18号线'
          }
          ]
        },
        {
          title: '一圈',
          isChoose: false,
          paramsName: "firstZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '天府新区',
            keyName: '天府新区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '高新区',
            keyName: '高新区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '锦江区',
            keyName: '锦江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '青羊区',
            keyName: '青羊区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '金牛区',
            keyName: '金牛区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '武侯区',
            keyName: '武侯区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '成华区',
            keyName: '成华区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新西区',
            keyName: '高新西区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '高新东区',
            keyName: '高新东区'
          }
          ]
        },
        {
          title: '二圈',
          isChoose: false,
          paramsName: "twoZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '龙泉驿区',
            keyName: '龙泉驿区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '新都区',
            keyName: '新都区'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '温江区',
            keyName: '温江区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '双流区',
            keyName: '双流区'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '郫都区',
            keyName: '郫都区'
          }
          ]
        },
        {
          title: '三圈',
          isChoose: false,
          paramsName: "threeZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '青白江区',
            keyName: '青白江区'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '金堂县',
            keyName: '金堂县'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '大邑县',
            keyName: '大邑县'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '都江堰市',
            keyName: '都江堰市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '彭州市',
            keyName: '彭州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '邛崃市',
            keyName: '邛崃市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '崇州市',
            keyName: '崇州市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '简阳市',
            keyName: '简阳市'
          },
          {
            conetent_id: '5',
            isChoose: false,
            name: '新津区',
            keyName: '新津区'
          }
          ]
        },
        {
          title: '成都周边',
          isChoose: false,
          paramsName: "circleZone",
          third: [{
            conetent_id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            conetent_id: '8',
            isChoose: false,
            name: '德阳市',
            keyName: '德阳市'
          }, {
            conetent_id: '2',
            isChoose: false,
            name: '乐山市',
            keyName: '乐山市'
          }, {
            conetent_id: '4',
            isChoose: false,
            name: '眉山市',
            keyName: '眉山市'
          }

          ]
        },
      ]
    },
    {
      id: 2,
      name: '价格',
      popType: "morePrice",
      isMultiple: true,//是否多选
      sec: [
        {
          title: "租金(元/月)",
          isChoose: true,
          paramsName: 'totalPrice',
          third: [{
            id: '1',
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            id: '1',
            isChoose: false,
            name: '500元以下',
            keyName: '1-500',
            minValue: 1,
            maxValue: 500,
          },
          {
            id: '2',
            isChoose: false,
            name: '500-1000元',
            keyName: '500-1000',
            minValue: 500,
            maxValue: 1000,
          },
          {
            id: '2',
            isChoose: false,
            name: '1500-2000元',
            keyName: '1500-2000',
            minValue: 1500,
            maxValue: 2000,
          },
          {
            id: '3',
            isChoose: false,
            name: '2000-3000元',
            keyName: '2000-3000',
            minValue: 2000,
            maxValue: 3000,
          }, {
            id: '4',
            isChoose: false,
            name: '3000元以上',
            keyName: '3000-9999',
            minValue: 3000,
            maxValue: 9999,
          },

          ]
        },

      ]
    },

    {
      id: 3,
      name: '房型',
      popType: "formats",
      isMultiple: false,//是否多选
      sec: [{
        title: "房型",
        isChoose: true,
        paramsName: "formats",
        third: [{
          id: 1,
          isChoose: true,
          name: '不限',
          keyName: ''
        }, {
          id: 1,
          isChoose: false,
          name: '一室',
          keyName: '一室'
        }, {
          id: 1,
          isChoose: false,
          name: '二室',
          keyName: '二室'
        }, {
          id: 1,
          isChoose: false,
          name: '三室',
          keyName: '三室'
        }, {
          id: 1,
          isChoose: false,
          name: '四室',
          keyName: '四室'
        },
        {
          id: 1,
          isChoose: false,
          name: '五室',
          keyName: '五室'
        },
        {
          id: 1,
          isChoose: false,
          name: '五室以上',
          keyName: '五室以上'
        },
        ]
      }]
    },





    {
      id: 4,
      name: '面积',
      popType: "area",
      isMultiple: false,//是否多选
      sec: [{
        title: "出租面积",
        isChoose: true,
        paramsName: "area",
        third: [{
          id: 1,
          isChoose: true,
          name: '不限',
          keyName: ''
        }, {
          id: 2,
          isChoose: false,
          name: '10m²以下',
          keyName: '1-10'
        }, {
          id: 3,
          isChoose: false,
          name: '10-20m²',
          keyName: '10-20'
        }, {
          id: 4,
          isChoose: false,
          name: '20-30m²',
          keyName: '20-30'
        },
        {
          id: 4,
          isChoose: false,
          name: '30-50m²',
          keyName: '30-50'
        },
        {
          id: 4,
          isChoose: false,
          name: '50-100m²',
          keyName: '50-100'
        },
        {
          id: 4,
          isChoose: false,
          name: '100m²以上',
          keyName: '100-999'
        },


        ]
      }]
    },
    {
      id: 4,
      name: '更多',
      popType: "more",
      isMultiple: true,//是否多选
      sec: [
        {
          title: "房源类型",
          isChoose: true,
          paramsName: "houseTypes",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '房东直租',
            keyName: 1,
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '有房转租',
            keyName: 2,
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '找室友',
            keyName: 3,
            matchCategory: "common",
          },
          ]
        },
        {
          title: "付款类型",
          isChoose: true,
          paramsName: "payType",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '月付',
            keyName: "月付",
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '季付',
            keyName: "季付",
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '半年付',
            keyName: "半年付",
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '年付',
            keyName: "年付",
            matchCategory: "common",
          },
          ]
        },
        {
          title: "出租方式",
          isChoose: true,
          paramsName: "rentType",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '合租',
            keyName: 1,
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '整租',
            keyName: 2,
            matchCategory: "common",
          },
          ]
        },
        {
          title: "房间类型",
          isChoose: true,
          paramsName: "roomType",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '主卧',
            keyName: 1,
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '次卧',
            keyName: 2,
            matchCategory: "common",
          },
          {
            id: 3,
            isChoose: false,
            name: '隔间',
            keyName: 3,
            matchCategory: "common",
          },
          ]
        },
        {
          title: "租客性别",
          isChoose: true,
          paramsName: "customerType",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '男女不限',
            keyName: 3,
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '限男生',
            keyName: 1,
            matchCategory: "common",
          },
          {
            id: 3,
            isChoose: false,
            name: '限女生',
            keyName: 2,
            matchCategory: "common",
          },
          ]
        },
        {
          title: "装修",
          isChoose: true,
          paramsName: "decoration",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '毛坯',
            keyName: '毛坯',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '简装',
            keyName: '简装',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '精装',
            keyName: '精装',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '豪装',
            keyName: '豪装',
            matchCategory: "common",
          },


          ]
        },
        {
          title: "朝向",
          isChoose: true,
          paramsName: "towards",
          matchCategory: "common",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: '',
            matchCategory: "common",
          }, {
            id: 2,
            isChoose: false,
            name: '南北',
            keyName: '南北',
            matchCategory: "common",
          }, {
            id: 3,
            isChoose: false,
            name: '朝南',
            keyName: '朝南',
            matchCategory: "common",
          }, {
            id: 4,
            isChoose: false,
            name: '朝东',
            keyName: '朝东',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '朝北',
            keyName: '朝北',
            matchCategory: "common",
          },
          {
            id: 4,
            isChoose: false,
            name: '朝西',
            keyName: '朝西',
            matchCategory: "common",
          },


          ]
        },
        // {
        //   title: "楼层",
        //   isChoose: true,
        //   paramsName: "storey",
        //   third: [{
        //     id: 1,
        //     isChoose: true,
        //     name: '不限',
        //     keyName: ''
        //   }, {
        //     id: 2,
        //     isChoose: false,
        //     name: '低楼层',
        //     keyName: '低楼层'
        //   }, {
        //     id: 3,
        //     isChoose: false,
        //     name: '中楼层',
        //     keyName: '中楼层'
        //   }, {
        //     id: 4,
        //     isChoose: false,
        //     name: '高楼层',
        //     keyName: '高楼层'
        //   },
        //   ]
        // },
      ]
    },



    ],

    //临时写死的客户筛选数据:
    filter_customer: [
      {
        id: 1,
        name: '区域',
        popType: 'leftRight',
        isMultiple: true,//是否多选
        sec: [
          {
            title: '一圈',
            isChoose: false,
            paramsName: "firstZone",
            third: [{
              conetent_id: '1',
              isChoose: true,
              name: '不限',
              keyName: ''
            }, {
              conetent_id: '8',
              isChoose: false,
              name: '天府新区',
              keyName: '天府新区'
            }, {
              conetent_id: '2',
              isChoose: false,
              name: '高新区',
              keyName: '高新区'
            }, {
              conetent_id: '4',
              isChoose: false,
              name: '锦江区',
              keyName: '锦江区'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '青羊区',
              keyName: '青羊区'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '金牛区',
              keyName: '金牛区'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '武侯区',
              keyName: '武侯区'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '成华区',
              keyName: '成华区'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '高新西区',
              keyName: '高新西区'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '高新东区',
              keyName: '高新东区'
            }
            ]
          },
          {
            title: '二圈',
            isChoose: false,
            paramsName: "twoZone",
            third: [{
              conetent_id: '1',
              isChoose: true,
              name: '不限',
              keyName: ''
            }, {
              conetent_id: '8',
              isChoose: false,
              name: '龙泉驿区',
              keyName: '龙泉驿区'
            }, {
              conetent_id: '2',
              isChoose: false,
              name: '新都区',
              keyName: '新都区'
            }, {
              conetent_id: '4',
              isChoose: false,
              name: '温江区',
              keyName: '温江区'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '双流区',
              keyName: '双流区'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '郫都区',
              keyName: '郫都区'
            }
            ]
          },
          {
            title: '三圈',
            isChoose: false,
            paramsName: "threeZone",
            third: [{
              conetent_id: '1',
              isChoose: true,
              name: '不限',
              keyName: ''
            }, {
              conetent_id: '8',
              isChoose: false,
              name: '青白江区',
              keyName: '青白江区'
            }, {
              conetent_id: '2',
              isChoose: false,
              name: '金堂县',
              keyName: '金堂县'
            }, {
              conetent_id: '4',
              isChoose: false,
              name: '大邑县',
              keyName: '大邑县'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '都江堰市',
              keyName: '都江堰市'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '彭州市',
              keyName: '彭州市'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '邛崃市',
              keyName: '邛崃市'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '崇州市',
              keyName: '崇州市'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '简阳市',
              keyName: '简阳市'
            },
            {
              conetent_id: '5',
              isChoose: false,
              name: '新津区',
              keyName: '新津区'
            }
            ]
          },
          {
            title: '成都周边',
            isChoose: false,
            paramsName: "circleZone",
            third: [{
              conetent_id: '1',
              isChoose: true,
              name: '不限',
              keyName: ''
            }, {
              conetent_id: '8',
              isChoose: false,
              name: '德阳市',
              keyName: '德阳市'
            }, {
              conetent_id: '2',
              isChoose: false,
              name: '乐山市',
              keyName: '乐山市'
            }, {
              conetent_id: '4',
              isChoose: false,
              name: '眉山市',
              keyName: '眉山市'
            }

            ]
          },
        ]
      },
      {
        id: 3,
        name: '购买意向',
        popType: "price",
        isMultiple: false,//是否多选
        sec: [{
          title: "购买意向",
          isChoose: true,
          paramsName: "buyDegree",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            id: 1,
            isChoose: false,
            name: '高',
            keyName: '高'
          }, {
            id: 1,
            isChoose: false,
            name: '中',
            keyName: '中'
          }, {
            id: 1,
            isChoose: false,
            name: '低',
            keyName: '低'
          }


          ]
        }]
      },
      {
        id: 4,
        name: '购房类型',
        popType: "price",
        isMultiple: false,//是否多选
        sec: [{
          title: "购房类型",
          isChoose: true,
          paramsName: "buyHouseCategory",
          third: [{
            id: 1,
            isChoose: true,
            name: '不限',
            keyName: ''
          }, {
            id: 2,
            isChoose: false,
            name: '住宅',
            keyName: '住宅'
          }, {
            id: 3,
            isChoose: false,
            name: '公寓',
            keyName: '公寓'
          }, {
            id: 4,
            isChoose: false,
            name: '商铺',
            keyName: '商铺'
          },
          {
            id: 4,
            isChoose: false,
            name: '写字楼',
            keyName: '写字楼'
          },
          {
            id: 4,
            isChoose: false,
            name: '租赁',
            keyName: '租赁'
          },
          ]
        }]
      },
    ],



    //酒店列表
    houseList: [],
    //搜索时
    inputvalue: null,
    searchData: [],
    searchResultDatas: [],
    isLogin: false,
    currentmenu: -1,
    // request: {
    //   tagValue: (defaultTags && defaultTags.length > 0) ? defaultTags[0].third : null
    // },
    request: {
      tagValue: null,
    },
    firstNode: 0,//最外层类型的选中index
    nextNode: 0,//当前选中类型的content数组的index
    searchLeft: [],//content的数组
    searchRight: [],//content里面的value数组
    requestData: {},//请求数据
    leftRightIndex: 0,//左右结构的右边布局;
    isFadeOut: false,
  },
  lifetimes: {
    attached: function () {
      // 在组件实例进入页面节点树时执行
      this.setFilter(this.properties.filterType);
      // console.log("JJLog:获取到筛选data是:" + JSON.stringify(app.globalData.filterData))
    },
    detached: function () {
      // 在组件实例被从页面节点树移除时执行
    },
  },

  /**
   * 组件的方法列表
   */
  methods: {
    setFilter(type) {
      if (this.properties.tagType == "default") {
        this.setData({
          selectTags: this.data.defaultTags,
          "request.tagValue": this.data.defaultTags[0].third
        })
      } else if (this.properties.tagType == "second") {
        this.setData({
          selectTags: this.data.secondTags,
          "request.tagValue": this.data.secondTags[0].third
        })
      } else if (this.properties.tagType == "hunt") {
        this.setData({
          selectTags: this.data.huntTags,
          "request.tagValue": this.data.huntTags[0].third
        })
      }

      this.setData({
        filter: app.globalData.filterData
      })
      if (type == "SECOND") {
        this.setData({
          filter: this.data.filter_second,
        })
      }

      if (type == "rentShop" || type == "rentOffice") {
        this.setData({
          filter: this.data.filter_shop
        })
      }
      if (type == "buyShop" || type == "buyOffice") {
        this.setData({
          filter: this.data.filter_buyShop
        })
      }
      if (type == "RENT") {
        this.setData({
          filter: this.data.filter_rent
        })
      }
      if (type == "CUSTOMER") {
        this.setData({
          filter: this.data.filter_customer
        })
      }

      return;
      switch (type) {
        case 'kRESIDENTIAL':
          this.setData({
            filter: this.data.filter_one
          });
          return;
        case 'kAPARTMENT':
          this.setData({
            filter: this.data.filter_two
          });
          return;
        case 'kBUSINESS':
          this.setData({
            filter: this.data.filter_three
          });
          return;
        case 'kVILLE':
          this.setData({
            filter: this.data.filter_four
          })
          return;
        //仿贝壳
        case 'BENKE':
          this.setData({
            filter: this.data.filter_five
          })
          return;
        //仿贝壳
        case 'QUANM':
          this.setData({
            filter: this.data.filter_sex
          })
          return;
        default:
          this.setData({
            filter: this.data.filter_four
          })
          return;
      }

    },
    changemenu: function (e) {
      let index = e.currentTarget.dataset.idx
      console.log("JJLog:这个点击顶部切换时:" + index);
      if (index == this.data.currentmenu) {
        this.setData({
          is_view: false,
          currentmenu: 1000
        })
        // setTimeout(() => {
        //   this.setData({
        //     is_view: false,
        //     isFadeOut:true
        //   })
        // },1000);
        this.triggerEvent('changeMenu', { show: false });
        return;
      }
      this.setData({
        currentmenu: index >= 0 ? index : -1,
        is_view: true
      })

      this.triggerEvent('changeMenu', { show: true });
      this.setValue(index, 0)
      // 给右边选择栏赋值对吧
      this.setSearchRight(index)
    },
    switch_tab: function (e) {
      var index = e.currentTarget.dataset.index;
      console.log("JJLog:switch_tab选中的index:" + index);
      this.setData({
        leftRightIndex: index
      })
      var filter = this.data.filter
      //firstNode决定当前选中哪一类的content
      var firstNodeArr = filter[this.data.firstNode].sec
      var searchLeft = this.data.searchLeft
      // searchLeft就是当前选中的顶部类型的content数组
      //firstNodeArr 也是这个当前选中的这个content数组
      // console.log("JJLog:searchLeft:" + JSON.stringify(searchLeft));
      var searchRight = firstNodeArr[index].third

      for (var i = 0; i < firstNodeArr.length; i++) {
        if (i == index) {
          firstNodeArr[i].isChoose = true
        } else {
          firstNodeArr[i].isChoose = false
        }
      }
      this.setData({
        filter: filter
      })
      for (var i = 0; i < searchLeft.length; i++) {
        if (i == index) {
          searchLeft[i].isChoose = true
        } else {
          searchLeft[i].isChoose = false
        }
        this.setData({
          searchLeft: searchLeft
        })
      }
      // console.log("JJLog:searchLeft:" + JSON.stringify(searchLeft));
      // console.log("JJLog:nextNode是===:" + index);
      this.setData({
        searchRight: searchRight,
        nextNode: index
      })

      if (searchLeft[0].paramsName == "unitPrice") {
        if (index == 0) {
          this.setData({
            inputMaxPlaText: "最高价格（元）",
            inputMinPlaText: "最低价格（元）",
            inputMinPrice: "",
            inputMaxPrice: "",
            currentPriceType: 0,//单价
          })
        } else if (index == 1) {
          this.setData({
            inputMaxPlaText: "最高价格（万）",
            inputMinPlaText: "最低价格（万）",
            inputMinPrice: "",
            inputMaxPrice: "",
            currentPriceType: 1,//总价
          })
        }
      }



    },

    setSearchRight(firstNode) {
      //filter首先是整个的一个值，然后点击这个顶部切换栏的时候，会给这个右边将要显示的值进行一个赋值
      var firstNodeArr = this.data.filter[firstNode].sec
      //这个content也是一个数组，当content多个的时候，那么我们要判断当前选中的是哪一个，好给右边赋值
      //这种多用于这个为左右结构的情况
      for (var i = 0; i < firstNodeArr.length; i++) {
        if (firstNodeArr[i].isChoose) {
          var searchRight = firstNodeArr[i].third
          this.setData({
            searchRight: searchRight
          })
        }
      }
    },


    setValue(firstNode, nextNode) {
      //把第一个赋值的数组取出来:
      // console.log("JJLog:看看filter的值:" + JSON.stringify(this.data.filter));
      var firstNodeArr = this.data.filter[firstNode].sec

      // console.log("JJLog:点击顶部的时候左右如何赋值的:" + JSON.stringify(firstNodeArr));
      //取出这个这个content中的第一个出来
      var nextNodeArr = firstNodeArr[nextNode].third

      this.setData({
        searchLeft: firstNodeArr,
        searchRight: nextNodeArr,
        firstNode: firstNode
      })
      // 当左边的下标大于了获取到的数组长度就置为0
      if (this.data.nextNode > firstNodeArr.length) {
        this.setData({
          nextNode: 0
        })
      }

    },

    updateRightIsChoose: function (option) {
      //最开始 firstIndex和nextIndex都等于0 
      console.log("JJLog:看看这个option:" + JSON.stringify(option));
      var firstIndex = this.data.firstNode
      var nextIndex = this.data.nextNode
      console.log(`JJLog:选中右边任何一个的时候:firstIndex是:${firstIndex},nextIndex是:${nextIndex}`)
      //content中value那一层的选中情况
      var index = option.currentTarget.dataset.index
      console.log(`JJLog:当前选中的index是:${index}`)
      var filter = this.data.filter
      console.log("========= ： ", firstIndex, nextIndex, index)
      var firstNodeArr = filter[firstIndex].sec
      // console.log("JJLog:firstNodeArr:" + JSON.stringify(firstNodeArr));
      //是否可以多选
      let isMultiple = filter[firstIndex].isMultiple;

      console.log("-----------", firstNodeArr)
      var nextNodeArr = firstNodeArr[nextIndex].third
      let isSort = false;
      //判断这个右边是不是排序
      if (filter[firstIndex].popType == 'sort') {
        isSort = true;
      }
      //单选的情况
      if (!isMultiple) {

        //单选中的单选:
        if (filter[firstIndex].popType != "houseType") {
          for (var i = 0; i < nextNodeArr.length; i++) {
            nextNodeArr[i].isChoose = false
            if (i == index) {
              nextNodeArr[i].isChoose = true
            }
          }
          this.setData({
            filter: filter,
            searchRight: nextNodeArr
          })

          if (filter[firstIndex].popType == "area") {
            //为面积的时候要处理输入:
            if (!option.isInput) {
              this.setData({
                inputMinArea: "",
                inputMaxArea: "",
              })
            }
          }
        }

        //如果单选情况是房型的时候，我们要注意这个房型筛选是可以多选的
        if (filter[firstIndex].popType == "houseType") {
          console.log("JJLog:到这里来了哈===========");
          console.log("JJLog:nextNodeArr:" + JSON.stringify(nextNodeArr));
          let item = nextNodeArr[index];
          let isChoose = item.isChoose;
          //1.点击的是不限:
          if (item.name == "不限") {
            nextNodeArr.forEach((i) => {
              i.isChoose = false
            })
            nextNodeArr[0].isChoose = true;
            this.setData({
              filter: filter,
              searchRight: nextNodeArr
            })
          } else if (item.name != "不限") {
            if (isChoose) {
              item.isChoose = false;
            } else {
              item.isChoose = true;
            }
            nextNodeArr[index] = item;

            let isHaveSelect = false;
            for (let ih = 1; ih < nextNodeArr.length; ih++) {
              if (nextNodeArr[ih].isChoose) {
                isHaveSelect = true;
              }
            }
            if (isHaveSelect) {
              nextNodeArr[0].isChoose = false
            } else {
              nextNodeArr[0].isChoose = true
            }

            this.setData({
              filter: filter,
              searchRight: nextNodeArr
            })
          }
        }




      } else {
        //多选:
        let leftIndex = option.currentTarget.dataset.leftindex;

        if (filter[firstIndex].popType == 'morePrice') {
          console.log("JJLog:也走这里了:");
          //多项排列里面的单选
          //首先遍历firstNodeArr,将所有的第一层的value的第一个设置成true,不限,
          for (let j = 0; j < firstNodeArr.length; j++) {
            firstNodeArr[j].isChoose = false;
            firstNodeArr[j].third.forEach((item, index) => {
              item.isChoose = false;
            })
            firstNodeArr[j].third[0].isChoose = true;
            if (leftIndex == j) {
              firstNodeArr[j].isChoose = true;
              let nextArr = firstNodeArr[j].third;
              // console.log("JJLog:取出的是:" + JSON.stringify(nextArr));
              for (let k = 0; k < nextArr.length; k++) {
                nextArr[k].isChoose = false;
                if (k == index) {
                  nextArr[k].isChoose = true
                }

              }
            }

          }
          this.setData({
            filter: filter,
            searchLeft: firstNodeArr,
            searchRight: nextNodeArr,
          })

        } else if (filter[firstIndex].popType == 'lrPrice') {
          console.log("JJLog:也走这里了=========:");
          //多项排列里面的单选
          //首先遍历firstNodeArr,将所有的第一层的value的第一个设置成true,不限,
          for (let j = 0; j < firstNodeArr.length; j++) {
            firstNodeArr[j].isChoose = false;
            firstNodeArr[j].third.forEach((item, index) => {
              item.isChoose = false;
            })
            firstNodeArr[j].third[0].isChoose = true;
            if (leftIndex == j) {
              firstNodeArr[j].isChoose = true;
              let nextArr = firstNodeArr[j].third;
              // console.log("JJLog:取出的是:" + JSON.stringify(nextArr));
              for (let k = 0; k < nextArr.length; k++) {
                nextArr[k].isChoose = false;
                if (k == index) {
                  nextArr[k].isChoose = true
                }

              }
            }

          }
          if (!option.isInput) {
            this.setData({
              inputMaxPrice: "",
              inputMinPrice: "",
            })
          }

          this.setData({
            filter: filter,
            searchLeft: firstNodeArr,
            searchRight: nextNodeArr,
          })


        } else {
          // let leftIndex = 0;
          console.log("JJLog:选中的第一层是:" + leftIndex);
          console.log("JJLog:选中的第二层是:" + index);
          for (let j = 0; j < firstNodeArr.length; j++) {

            if (leftIndex == j) {
              firstNodeArr[j].isChoose = true;
              let nextArr = firstNodeArr[j].third;
              // console.log("JJLog:取出的是:" + JSON.stringify(nextArr));
              for (let k = 0; k < nextArr.length; k++) {
                nextArr[k].isChoose = false;
                if (k == index) {
                  nextArr[k].isChoose = true
                }

              }
            }

          }
          this.setData({
            filter: filter,
            searchLeft: firstNodeArr,
            searchRight: nextNodeArr,
          })
        }

      }


      if (isSort) {
        this.closeall();
      }
    },

    //自定义输入绑定数据:
    cellInputChange(e) {
      // console.log("JJLog:e:" + JSON.stringify(e));
      let key = e.currentTarget.dataset.key;
      let value = e.detail.value;
      if (key == "min") {
        this.setData({
          inputMinPrice: value
        })
      } else if (key == "max") {
        this.setData({
          inputMaxPrice: value
        })
      }

      let option = {
        currentTarget: {
          dataset: {
            index: 0,
            leftindex: 0,
          }
        },
        isInput: true,
      }


      if (this.data.currentPriceType == 0) {
        option.currentTarget.dataset.leftindex = 0
      } else {
        option.currentTarget.dataset.leftindex = 1
      }
      this.updateRightIsChoose(option);

      // console.log("JJLog:看看searchLeft:" + JSON.stringify(searchLeft));
    },
    //自定义输入面积;
    cellAreaInputChange(e) {
      let key = e.currentTarget.dataset.key;
      let value = e.detail.value;
      if (key == "min") {
        this.setData({
          inputMinArea: value
        })
      } else if (key == "max") {
        this.setData({
          inputMaxArea: value
        })
      }
      let option = {
        currentTarget: {
          dataset: {
            index: 0,
            leftindex: 0,
          }
        },
        isInput: true,

      }
      this.updateRightIsChoose(option);



    },



    /**
     * 确定按钮
     */
    closeall: function () {
      let filter = this.data.filter;
      //当前选中的整个类型对象数据
      let currentNodeArr = filter[this.data.firstNode].sec;
      // console.log("JJLog:对应选中的数据:" + JSON.stringify(currentNodeArr));
      //是否可以多选
      let isMultiple = filter[this.data.firstNode].isMultiple;
      let currentNextNodeObj = currentNodeArr[this.data.nextNode];
      // console.log("JJLog:看看这个：" + JSON.stringify(currentNextNodeObj));
      //对应选中数组
      let currentNextNodeArr = currentNodeArr[this.data.nextNode].third;

      //先考虑单选的情况哈:
      if (!isMultiple) {
        let requestData = this.data.request;
        let popType = filter[this.data.firstNode].popType;
        console.log("JJLog:类型是:" + popType);
        //不是单选中的多选情况
        if (popType != "houseType") {
          for (let i = 0; i < currentNextNodeArr.length; i++) {
            let content = currentNextNodeArr[i];
            if (content.isChoose) {
              requestData[currentNextNodeObj.paramsName] = content.name != '不限' ? content.keyName : '不限';
              this.setData({
                request: requestData
              })
            }
          }
        }
        if (popType == "area" && this.data.inputMinArea && this.data.inputMaxArea) {
          this.setData({
            'request.area': this.data.inputMinArea + "-" + this.data.inputMaxArea
          })
        }
        //房型中的多选情况:
        if (popType == "houseType") {
          console.log("JJLog:currentNextNodeArr:" + JSON.stringify(currentNextNodeArr));
          let item = currentNextNodeArr[0];
          if (item.isChoose) {
            //直接是选中的不限:
            requestData[currentNextNodeObj.paramsName] = "不限";
          } else {
            let reArr = [];
            let moreArr = ["六室", '七室', '八室', '九室', '十室'];
            for (let re = 1; re < currentNextNodeArr.length; re++) {
              if (currentNextNodeArr[re].isChoose) {

                if (currentNextNodeArr[re].keyName.indexOf("以上") != -1) {
                  reArr = reArr.concat(moreArr)
                } else {
                  reArr.push(currentNextNodeArr[re].keyName);
                }
              }
            }
            // let reStr = reArr.join(",");
            requestData[currentNextNodeObj.paramsName] = reArr;
          }
          this.setData({
            request: requestData
          })

        }



      } else {
        //多选的情况:
        let requestData = this.data.request;
        for (let j = 0; j < currentNodeArr.length; j++) {
          let contentObj = currentNodeArr[j];
          let contentArr = contentObj.third;
          for (let k = 0; k < contentArr.length; k++) {
            let content = contentArr[k];
            if (content.isChoose) {
              //这里逻辑还可以处理下，如果是这个为不限的，看需不需要加入这个request中
              requestData[contentObj.paramsName] = content.name != '不限' ? content.keyName : '不限';
              this.setData({
                request: requestData
              })
            }

          }

        }








        //这个是专门为这个区域那里准备的，一旦有新的多选，这里还得加判断才行
        let currentParamsName = currentNextNodeObj.paramsName;





        console.log("JJLog:当前选中的这个参数:" + currentParamsName);
        if (currentParamsName == "unitPrice") {
          if (this.data.inputMinPrice && this.data.inputMaxPrice && this.data.currentPriceType == 0) {
            //最低和最高都有输入的情况下:
            let keyName = this.data.inputMinPrice + "-" + this.data.inputMaxPrice;
            this.setData({
              'request.unitPrice': keyName,
            })
          }
        }
        if (currentParamsName == "totalPrice") {
          if (this.data.inputMinPrice && this.data.inputMaxPrice && this.data.currentPriceType == 1) {
            //最低和最高都有输入的情况下:
            let keyName = this.data.inputMinPrice + "-" + this.data.inputMaxPrice;
            this.setData({
              'request.totalPrice': keyName,
            })
          }
        }




        let currentSelectValue = requestData[currentParamsName];
        // console.log("JJLog:这里对不对:" + currentSelectValue);
        if (currentParamsName.indexOf("Zone") != -1) {
          for (let key in this.data.request) {
            console.log("JJLog:当前request中的key:" + key);
            this.setData({
              "request.firstZone": null,
              "request.twoZone": null,
              "request.threeZone": null,
              "request.circleZone": null,
            })

          }
          let zones = "";
          // let value = `request.${currentParamsName}` 
          // this.setData({
          //   [value]:currentSelectValue
          // })
          // zones.push(currentSelectValue);
          zones = currentSelectValue;
          this.setData({
            'request.zone': zones
          })

        }
      }

      this.triggerEvent('confirm', this.data.request)
      this.setData({
        is_view: false,
        currentmenu: 1000
      })
    },
    /**
     *  切换tag
     * @param {*} e 
     */
    chooseTag(e) {
      let sIndex = e.target.dataset.index;
      if (sIndex == this.data.secendSelect) {
        //当选择到同一个tag的时候，就取消这个选择
        sIndex = 100
      }

      if (sIndex != 100) {
        let arr = [];
        arr.push(this.data.selectTags[sIndex].value)
        // this.setData({
        //   secendSelect: sIndex,
        //   'request.tagValue': this.data.selectTags[sIndex].value
        // })
        this.setData({
          secendSelect: sIndex,
          'request.tags': arr
        })
      } else {
        // this.setData({
        //   secendSelect: sIndex,
        //   'request.tagValue': null
        // })
        this.setData({
          secendSelect: sIndex,
          'request.tags': []
        })
      }

      this.triggerEvent('confirm', this.data.request)
    },
    reset: function () {
      let filter = this.data.filter;
      let currentNodeArr = filter[this.data.firstNode].sec;
      // console.log("JJLog:当前的===:" + JSON.stringify(currentNodeArr));

      let requestData = this.data.request;
      for (let j = 0; j < currentNodeArr.length; j++) {
        let contentObj = currentNodeArr[j];
        let contentArr = contentObj.third;
        for (let k = 0; k < contentArr.length; k++) {
          let content = contentArr[k];
          content.isChoose = false;
          if (k == 0) {
            content.isChoose = true;
          }
          requestData[contentObj.paramsName] = null;
          this.setData({
            request: requestData
          })

        }

      }
      if (currentNodeArr[0].paramsName == "area") {
        this.setData({
          inputMinArea: "",
          inputMaxArea: ""
        })
      }
      if (currentNodeArr[0].paramsName == "unitPrice") {
        this.setData({
          inputMinPrice: "",
          inputMaxPrice: "",
        })
      }




      this.setData({
        filter: filter,
        searchLeft: currentNodeArr,
        searchRight: currentNodeArr[this.data.nextNode].third
      })
      this.triggerEvent('confirm', this.data.request)
      this.setData({
        is_view: false,
        currentmenu: 1000
      })

    },
    actionAA(e) {
      console.log("JJLog:eee==:" + JSON.stringify(e.currentTarget.dataset.item));
    },
  }

})
